package com.zengge.zbc.utils;


public class SecretUtils {

    /**
     * 硬件加密KEY
     */
    public static final String SECRET_KEY = "fa56c6c7ee3e008b";

    /**
     * 硬件加密空间
     */
    public static final String SECRET_IV_SPACE = "fa56c6e7ce3e008b";


    private static AesUtils aesUtils;

    static {
        try {
            aesUtils = new AesUtils(SECRET_KEY, SECRET_IV_SPACE);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }


    public static String encrypt(String value) throws Exception {
        return aesUtils.cbcEncrypt(value);
    }

    public static String decrypt(String value) throws Exception {
        return aesUtils.cbcDecrypt(value);
    }
}
